using System;
using CRM.Core.DomainClasses;
using CRM.Presenter.Interfaces;

namespace CRM.Presenter
{
    public class CustomerPresenter
    {
        public CustomerPresenter(ICustomer customer)
        {
            _customer = customer;
        }
        public void CustomerSearch(object sender, EventArgs e)
        {
            var parameters = new object[1];parameters[0] = DBNull.Value;
            var customerList = new Customer().Get(parameters);
            _customer.BindCustomerData = customerList;
        }
        private readonly ICustomer _customer;
    }
}